package com.oscarmovie.service;

import java.util.List;

import com.oscarmovie.dao.MusicDao;
import com.oscarmovie.model.Music;

public class MusicServiceImpl implements MusicService{
	private MusicDao musicDao;

	public void setMusicDao(MusicDao musicDao) {
		this.musicDao = musicDao;
	}

	public MusicDao getMusicDao() {
		return musicDao;
	}

	
	public void save(Music music) {
		musicDao.save(music);
	}

	
	public Music load(int id) {
		Music music =  musicDao.load(id);
		return music;
	}

	
	public List<Music> loadAll() {
		return musicDao.loadAll();
	}
}
